﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Threading;
using S5230WallpaperCreator.Properties;

namespace S5230WallpaperCreator
{
    static class Program    
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (Settings.Default.ShowChooseLanguage)
            {
                SelectLanguageForm chooseForm = new SelectLanguageForm();
                chooseForm.ShowDialog();
            }

            if (!string.IsNullOrEmpty(Settings.Default.Localization))
            {
                Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(Settings.Default.Localization);
            }

            Application.Run(new MainForm());
        }
    }
}
